home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-10-25 | 2.2 KB | 86 lines | [TEXT/GEOL] |
- Item 0777796 25-Oct-89 13:17
-
- From: MADA.EUROPE MacApp Dev Assoc Europe, E Carrasco
-
- To: MACAPP.TECH$ MACAPP Tech
- X0121 Symantec,Languages Tech Support,VCA
- D0152 Symantec Mktg, Languages,PRT
-
- Sub: GetSuperClassTable with THINK
-
- Attn: MacApp.Tech and Symantec
-
- From: Eric Carrasco
- MADA Europe
- 2, allée des Acacias
- F-95130 Le Plessis Bouchard
- France
-
- Sub: GetSuperClassTableHandle with THINK Pascal
-
-
- Hi all OOP'ers,
-
- Many European developers enjoy Think Pascal and would like MADA to provide a
- THINK version of MacApp 2.0B9 and next versions. This has been done without
- difficulty BUT we have one last problem:
- the procedure %_CLASSINFO is generated by MPW Linker so we get the standard
- message from Think Pascal Linker:
- undefined: "%_CLASSINFO" (UObject.p)
-
-
- Let's have a look at MacApp source code (file UObject.Globals.p):
-
- ---
- PROCEDURE %_CLASSINFO;
- EXTERNAL;
- { Created by linker } Aaaaaaaarrrrrrrgl!!!
- ---
-
-
- This procedure is used in GetSuperClassTableHandle function:
-
- ---
- FUNCTION GetSuperClassTableHandle: Handle;
-
- BEGIN
- { Force Jump Table relative }
- GetSuperClassTableHandle := Handle(ord(@%_CLASSINFO) + 2);
- { skip jmp instruction to make PHONY handle }
- END;
- ---
-
-
- And finally, a global pSuperClassTable variable is setup.
-
- ---
- PROCEDURE InitUObject;
-
- BEGIN
- ...
- pSuperClassTable := GetSuperClassTableHandle;
- ...
- END;
- ---
-
- pSuperClassTable is used in global procedures (GetClassSizeFromId,
- GetClassNameFromID, GetSuperClassID, OrderClassIdsByName, NewObjectByClassId,
- OrderClassIdsByName, etc...)
- All those procedures are base on method dispatch table. We find them everywhere
- in MacApp source code and can't do anything without them.
-
-
- My questions are:
- 1. Is there any similar method in Think Pascal, I mean a method equivalent to
- %_CLASSINFO or to GetSuperClassTableHandle?
-
- 2. Is there any way to know how objects are implemented in THINK Pascal?
-
-
- Any help will be welcome, we keep on working on this problem.
-
- Best Regards,
-
- Eric
-
-